package com.zhida.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * Create by zhh 2024/7/17 11:23
 */
@Getter
@Setter
@TableName("ws_group")
@Data
public class WsGroup {
    /**群号**/
    @TableId(value = "group_id" , type = IdType.AUTO)
    private String groupId;

    /**群名称**/
    @TableField("group_name")
    private String groupName;

    /**群头像 base64**/
    @TableField("group_avatar")
    private String groupAvatar;

    /**群主 user_id**/
    @TableField("group_owner")
    private String groupOwner;

    /**管理员列表 username,username...**/
    @TableField("group_admin")
    private String groupAdmin;

    /**成员**/
    @TableField("members")
    private String members;

    /**申请列表**/
    @TableField("join_awaiter")
    private String joinAwaiter;

    /**创建时间**/
    @TableField("create_time")
    private LocalDateTime createTime;

    /*群禁言*/
    @TableField("is_mute")
    private Integer isMute;
}
